package com.docker.upload;

import com.docker.core.mvc.Remark;
import com.docker.core.mvc.controller.BaseAPIController;
import com.jfinal.aop.Inject;

/**
 * @Author ldl
 * @Create 2020/10/21 021 17:03
 */
@Remark("文件上传管理")
public class UploadController extends BaseAPIController {

    @Inject
    private UploadService uploadService;

    /**
     * @Param: []
     * @return: 文件的相对路径
     * @Author: ldl
     * @Create: 2020/09/18 018 16:22
     */
    @Remark("上传密钥文件")
    public void certs() {
        renderAPISuccess(uploadService.upload(getFile(), getBean(UploadBean.class, ""), getUserId()));
    }

}
